package org.example.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (Question)实体类
 *
 * @author makejava
 * @since 2024-10-14 11:52:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Question implements Serializable {
    private static final long serialVersionUID = 444450616693189056L;
    /**
     * 问题id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 问题类型 0选择 1判断
     */
    private Integer type;
    /**
     * 问题内容
     */
    private String content;
    /**
     * 选项A
     */
    private String optionA;
    /**
     * 选项B
     */
    private String optionB;
    /**
     * 选项C
     */
    private String optionC;
    /**
     * 选项D
     */
    private String optionD;
    /**
     * 正确选项
     */
    private Integer trueOption;

}

